package com.chenxi.vhr.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chenxi.vhr.bean.BaseDepartment;
import com.chenxi.vhr.bean.vo.DepartmentTreeVo;

import java.util.List;

public interface BaseDepartmentService extends IService<BaseDepartment> {

    /**
     * 获取部门树
     * @return
     */
    List<DepartmentTreeVo> getDeptTree();

    /**
     * 新增部门，调用存储过程
     * @param department
     */
    void addDept(BaseDepartment department);

    /**
     * 删除部门，调用存储过程
     * @param department
     * @return
     */
    void deleteDept(BaseDepartment department);
}
